package com.ita.util;

import java.security.MessageDigest;

public class MD5Util {
	
	private MD5Util() {

	}
	
	public static String makeMD5(String str) {
		MessageDigest md;
		try {
			md = MessageDigest.getInstance("MD5");
			byte[] result = md.digest(str.getBytes());
//			return new String(result);
			return Base64Util.byteToBase64(result);
		} catch (Exception e) {
			System.out.println(e.getMessage());
			return null;
		}

	}
	

}
